package com.td.module.pests.controller.admin.library.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
* 病虫害知识库 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class LibraryBaseVO {

    @ApiModelProperty(value = "病虫害名称", required = true, example = "张三")
    @NotNull(message = "病虫害名称不能为空")
    private String diseaseName;

    @ApiModelProperty(value = "病虫害类型", required = true, example = "1")
    @NotNull(message = "病虫害类型不能为空")
    private Integer diseaseType;

    @ApiModelProperty(value = "农作物类型", required = true, example = "1")
    @NotNull(message = "农作物类型不能为空")
    private Integer cropsType;

    @ApiModelProperty(value = "农作物", required = true)
    @NotNull(message = "农作物不能为空")
    private String crop;

    @ApiModelProperty(value = "病虫害异名", required = true)
    private String diseaseNameOther;

    @ApiModelProperty(value = "病虫害英文名", required = true)
    private String diseaseNameEng;

    @ApiModelProperty(value = "病虫害简介", required = true)
    private String diseaseIntro;

    @ApiModelProperty(value = "病虫害图片列表")
    private String diseaseImgList;

    @ApiModelProperty(value = "防治")
    private String cMethod;

    @ApiModelProperty(value = "危害症状")
    private String damageSym;

    @ApiModelProperty(value = "习性")
    private String habits;

    @ApiModelProperty(value = "形态")
    private String morphology;

}
